using UnityEngine;

public class ItemPriceDisplay : MonoBehaviour
{
	public UILabel priceLabel;

	public GameObject coinSprite;

	public GameObject ggDollarSprite;

	public void UpdatePrice(int price, CurrencyType currency)
	{
		base.gameObject.SetActive(price > 0);
		UITools.ChangeText(priceLabel, GGFormat.FormatPrice(price));
		coinSprite.SetActive(currency == CurrencyType.coins);
		ggDollarSprite.SetActive(currency == CurrencyType.ggdollars);
	}
}
